import { http } from '@/utils/http'

const baseUri = '/api/dict/dictItem'

export const dictMap = {
  policyType: 'policyType', // 政策解读类型
  orderType: 'orderType', // 点单服务类型
  hallStar: 'hallStar', // 礼堂星级
  jointActivityCategory: 'jointActivityCategory', // 文化定制菜单 - 活动类型
  lessonType: 'lessonType', // 课程类型
  activityState: 'activityState', // 活动状态
}

// 获取数据字典
export const getDict = (params) => http.get('/sys/dictItem/dictItemCheck', params)

// 获取字典详情
export const getDictDetail = (type) => http.get(`${baseUri}/${type}`)

// 政策解读类型
export const getPolicyType = () => http.get(`${baseUri}/policyType`)

// 点单服务类型
export const getOrderType = () => http.get(`${baseUri}/orderType`)

// 礼堂星级
export const getHallStar = () => http.get(`${baseUri}/hallStar`)

// 活动类型

// 全部乡镇
export const getAllTown = () => http.get(`/api/dict/lh/townCode`)

// 节目类别
export const getProgrammeCategory = () => http.get(`/api/dict/category/C03`)
